package com.xoa.service.document;

import com.xoa.model.document.DocumentExchangeSet;
import com.xoa.util.ToJson;
import com.xoa.util.page.PageParams;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface DocumentExchangeSetService {
    //查询所有
    public ToJson<DocumentExchangeSet> selectDocumentExchange(DocumentExchangeSet documentExchangeSet, PageParams pageParams);

    //添加公文交换
    public int saveDocumentExchange(HttpServletRequest request, DocumentExchangeSet documentExchangeSet);

    //删除
    public int deleteDocumentExchange(Integer exchangeId);

    //更新
    public int updateDocumentExchange(DocumentExchangeSet documentExchangeSet);

    //根据ID回显数据
    public DocumentExchangeSet selectDocumentExchangeById(Integer exchangeId);

    //根据权限查询数据
    public ToJson<DocumentExchangeSet> selectByDocumentPriv(DocumentExchangeSet documentExchangeSet);

    //判断是否有权限
    public ToJson selectByUser(HttpServletRequest request);

}
